<fieldset>
<table>
  <tr>
    <td width="100" style="font-weight:bold;">Revista</td>
	<td width="100" style="font-weight:bold;">N&uacute;mero</td>
    <td width="150" style="font-weight:bold;">Data</td>
	<td />
  </tr>
  
<% for edition in @editions %>
  <tr>
    <td><%= h edition.magazine.name %></td>
    <td><%= h edition.number %></td>
  	<td><%= h edition.date %></td>
    <td><%= link_to 'Mostrar', :action => 'show', :id => edition %> |
	<%= link_to 'Editar', :action => 'edit', :id => edition %> |
    <%= link_to 'Excluir', { :action => 'destroy', :id => edition }, :confirm => 'Deseja mesmo deletar?', :method => :post %></td>
  </tr>
<% end %>
</table>

<%= link_to 'Anterior', { :page => @edition_pages.current.previous } if @edition_pages.current.previous %>
<%= link_to 'Pr&oacute;xima', { :page => @edition_pages.current.next } if @edition_pages.current.next %> 
</fieldset>

<p>
<%= link_to 'Adicionar edi&ccedil;&atilde;o de revista', :action => 'new' %>
</p>

<p>
  <h2>Op&ccedil;&otilde;es relacionadas:</h2>
  &bull; <%= link_to 'Gerenciar revistas', :controller => 'magazines', :action => 'list'%><br/>
  &bull; <%= link_to 'Gerenciar categorias', :controller => 'categories', :action => 'list'%>
</p>
